package com.warski.wonderfires.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xuhaiping on 2020/8/29.
 * 歌单
 */
public class SongListItemInfo {
    private String title;//名称
    private String description;//描述
    private String image;//歌单封面
    private List<MusicItemInfo> musicList;//歌曲列表
    private int like;//喜欢人数
    private int dislike;//不喜欢人数
    private int listening;//正在听的人数

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getLike() {
        return like;
    }

    public void setLike(int like) {
        this.like = like;
    }

    public int getDislike() {
        return dislike;
    }

    public void setDislike(int dislike) {
        this.dislike = dislike;
    }

    public int getListening() {
        return listening;
    }

    public void setListening(int listening) {
        this.listening = listening;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<MusicItemInfo> getMusicList() {
        return musicList;
    }

    public void setMusicList(List<MusicItemInfo> musicList) {
        this.musicList = musicList;
    }

    public void addMusic(MusicItemInfo musicInfo){
        if(this.musicList == null){
            this.musicList = new ArrayList<>();
        }
        this.musicList.add(musicInfo);
    }
}
